VT-d: tidy <X>_to_<Y>() functions
authorJan Beulich <jbeulich@suse.com>
Thu, 5 Sep 2019 07:57:44 +0000 (09:57 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 5 Sep 2019 07:57:44 +0000 (09:57 +0200)
commite03eb145484c10351b40755a148babe2ad69d1d8
tree66b29defcb0232fc242176582b8de4d9a44ad2fd
parent8b25551baa3307af0aa1ef8f7f43403f01c2c5d7
VT-d: tidy <X>_to_<Y>() functions

Drop iommu_to_drhd() altogether - there's no need for a loop here, the
corresponding DRHD is a field in struct intel_iommu.

Constify drhd_to_rhsa()'s parameter and adjust style.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/dmar.c
xen/drivers/passthrough/vtd/extern.h
xen/drivers/passthrough/vtd/intremap.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/qinval.c